<?php

require_once '../tpl/use/block/styleCore.php';
require_once '../util/perm.php';
require_once '../util/xhtml.php';

function skin_ShowFora( $fora ) {
  styleHead();

  echo '<div class="main">
          <div class="item">
            <div class="content">
              <div class="body">';
  
  foreach( $fora as $forum ) {
    echo '<p>',
         linkAt('thread.php', array(
                                   'fnum' => $forum['id'], 
                                   'start' => 0, 
                                   'inc' => 6)
                ,"${forum['title']} - ${forum['datum']}" )
         ,'</p>';
  }
  if( hasPerm( 'forum.edit' ) ) {
 // XXX
    echo linkAt('admin.php', array( 'type' => 'FORUM' ),
                'Edit Forums' );
  }

  echo '</div></div></div></div>';

  styleFoot();
}
?>
